package com.travel.server.manager.impl.task;

import com.travel.server.manager.dao.OrderInfoDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: LiZhenhui
 * @Date: 2018/11/22 11:01
 * @Desc: 自动结束到期的订单
 */
@Component
public class OrderCompleteTask {

    @Autowired
    private OrderInfoDao orderInfoDao;

    public void handle(){
        orderInfoDao.updateOrderComplete();
    }
}
